Skip to content

Conversation

@joaodinissf
Copy link
Collaborator

@joaodinissf joaodinissf commented Jan 27, 2026

Summary

  • Convert test suites from JUnit 4 @SelectClasses to JUnit 5 @SelectPackages + @Suite
  • Make test classes and methods package-private per PMD JUnit5TestShouldBePackagePrivate rule
  • Rename BugAig1314, BugDsl27, BugAig1084 to *Test suffix for JUnit 5 / Tycho discoverability
  • Add @IncludeClassNamePatterns(".*Test.*") consistently across all test suites
  • Clean up stale @SuppressWarnings annotations (restriction, unchecked) where no longer needed

Notes

  • @SelectPackages does not work with OSGi bundleresource:// URIs; test discovery relies on Tycho's **/*Test.java surefire convention. The suite annotations serve as documentation and for non-OSGi execution.
  • @SuppressWarnings cleanup touches non-test files — these are valid but tangential to the JUnit 5 migration.

Test plan

  • CI maven-verify passes
  • CI PMD passes

@joaodinissf joaodinissf changed the title [WIP] Junit [WIP] refactor: convert test classes to JUnit 5 package-private visibility Jan 27, 2026
@joaodinissf joaodinissf changed the title [WIP] refactor: convert test classes to JUnit 5 package-private visibility refactor: convert test suites to JUnit 5 and make test classes package-private Feb 6, 2026
@joaodinissf joaodinissf marked this pull request as ready for review February 6, 2026 22:58
@joaodinissf joaodinissf marked this pull request as draft February 6, 2026 22:58
joaodinissf and others added 8 commits February 6, 2026 23:59
Replace GitHub Action PMD with Maven-based PMD job for version
consistency with ddk-parent/pom.xml. Add separate Checkstyle job.
Both run in parallel with maven-verify for faster feedback on
style violations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The cast clarifies that ProxyModelAssociationsAdapter is an Adapter
through its inheritance chain.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Remove AllTests.java and XtextTestSuite.java
- JUnit 5 @SelectPackages doesn't work with OSGi bundleresource:// URIs
- Add <includes> pattern for *Test.java in tycho-surefire-plugin
- Let Tycho discover tests by naming convention instead
- Remove ExportScopingTest.xtext (was added for testing, not in master)
- Rename BugAig1314, BugDsl27, BugAig1084 to *Test suffix so they match
  JUnit 5 default class name pattern and Tycho's **/*Test.java convention
- Add missing expression package to GeneratorTestSuite @SelectPackages
- Add @IncludeClassNamePatterns(".*Test.*") to all suites for consistency

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…sses

Fix PMD PublicMemberInNonPublicType violations: constructors, methods,
fields, and inner classes that were still public in package-private test
classes are now package-private.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant